package cn.mntool.ftp.exception;

/**
 * describe: 上传异常
 *
 * @author lianying
 * @date 2018/12/13
 */
public class UploadException extends Exception{
    private int code;
    public UploadException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMsg());
        this.code=exceptionEnum.getCode();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
